package ml;

public class Data {
	private int column;
	private double value;

	public Data(double value, int column) {
		this.column = column;
		this.value = value;
	}
	
	/**
	 * Convenience constructor for binary features.
	 */
	public Data(boolean value, int column) {
		this.column = column;
		if (value)
			this.value = 1.0;
		else
			this.value = 0.0;
	}

	public int getColumn() {
		return column;
	}

	public void setColumn(int column) {
		this.column = column;
	}

	public double getValue() {
		return value;
	}
}
